package org.gntc.prayer;

import java.sql.Date;

public class Prayer 
{
	protected static Prayer mPrayer;
	protected String Title = null;
	protected Date RegistDate = null;
	protected Date StartDate = null;
	protected Date EndDate = null;
	protected int Category = 1;
	protected boolean Favorite = false;
	
	private Prayer ()
	{
	}
	
	public Prayer (String title, Date register, Date start, Date end, int category, boolean favorite){
		Title = title;
		RegistDate = register;
		StartDate = start;
		EndDate = end;
		Category = category;
		Favorite = favorite;
	}
	
	public static Prayer getPrayerInstance () {
		if (mPrayer == null)
		{
			mPrayer = new Prayer();
		}
		
		return mPrayer;
	}

	public String getTitle ()
	{
		return Title;
	}

	public void setTitle (String title)
	{
		Title = title;
	}

	public Date getRegistDate ()
	{
		return RegistDate;
	}

	public void setRegistDate (Date registDate)
	{
		RegistDate = registDate;
	}

	public Date getStartDate ()
	{
		return StartDate;
	}

	public void setStartDate (Date startDate)
	{
		StartDate = startDate;
	}

	public Date getEndDate ()
	{
		return EndDate;
	}

	public void setEndDate (Date endDate)
	{
		EndDate = endDate;
	}

	public int getCategory ()
	{
		return Category;
	}

	public void setCategory (int category)
	{
		Category = category;
	}

	public boolean isFavorite ()
	{
		return Favorite;
	}

	public void setFavorite (boolean favorite)
	{
		Favorite = favorite;
	}
}
